package interpreter;

/**
 * 计算除法的 非终结符
 *
 * @author Koizumi Sinya
 * @date 2018/03/19. 21:13
 * @edithor
 * @date
 */
public class DivNode extends SymbolNode {
    public DivNode(Node left, Node right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() / right.interpret();
    }
}
